home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Enter 1999 March / enter_03_1999_1.iso / INTERNET / x news / readme.txt < prev    next >
Text File  |  1999-01-06  |  38KB  |  676 lines

  1. Xnews beta 1.xx.xx - 32-bit newsreader for Windows9x/NT
  2.  
  3. (C)opyright Luu Tran, 1998.  All rights reserved.
  4.  
  5. mailto:luutran@geocities.com
  6. http://www.geocities.com/SiliconValley/Heights/9860/
  7.  
  8. Hint: Turn on word wrap to view this file.
  9.  
  10. This is freeware.  It may be freely distributed provided the copyright and the contents of all files are unmodified.  The usual caveats apply, i.e., use at your own risk, etc. etc. <g>
  11.  
  12.  
  13. ***********************************
  14.  
  15.  
  16. Note: read at least 0-4.
  17.  
  18. Contents
  19. 0) Warning
  20. 1) QuickStart Guide
  21. 2) Basic things you need to know about Xnews.
  22. 3) How do I...
  23. 4) Hidden keyboard shortcuts / Keyboard tips
  24. 5) Troubleshooting / FAQs
  25. 6) What does ____ do?
  26. 7) Hidden Tips and Tricks
  27. 8) Filters, filters everywhere
  28. 9) Header and article storage
  29. 10) Folders
  30. 11) Advanced customizations (groups.ini)
  31. 12) Plonk file
  32. 13) Score file.
  33. 14) Regular expression.
  34.  
  35. ***********************************
  36.  
  37.  
  38. 0) Warning:
  39.  
  40. This is betaware, so don't use it unless you like to mess around with software.  There is no documentation aside from this longish readme.
  41.  
  42. This is an on-line reader.  It has pseudo offline features such as header storage, but if you need true off-line capabilities, use Agent, Gravity, or some other reader.
  43.  
  44. I'm a fan of NewsXpress so I liberally stole ideas from that program.  NX users should find Xnews very familiar.
  45.  
  46. About this document: I know it's rather minimal but please read it.  I'm too lazy to write a full blown manual.  I assume you have used other newsreaders before and basically know how usenet works, so I will only go over things that are different about/specific to Xnews. 
  47.  
  48.  
  49. ***********************************
  50.  
  51.  
  52. 1) QuickStart Guide
  53.  
  54. First time you run Xnews, it will bring up the Setup dialog.  Enter your name, etc.  I'll only describe the unfamiliar items here:
  55.  
  56. Public Email:    This is the email you want to put in your From: header when
  57.                 posting to usenet.  In contrast. Email is the email you want to
  58.                 to use when replying via private email.
  59.                 Why use separate emails for usenet and mail?  I do it to help
  60.                 deal with spam.
  61.  
  62. IDToken            This is a string Xnews embed in Message-ID in order to track your
  63.                 posts and alert you to replies to your articles.
  64.                 You can use any string of letters and numbers.  I use my email
  65.                 without the @ and .  i.e., luutrangeocitiescom
  66.                 The idea is to use a string that noone else is likely to use.
  67.  
  68. Once you've done that, click Okay.  Xnews will ask you to create a server profile.  (The program can deal with multiple servers.)  Enter the server name, e.g., news.mindspring.com.  Then enter an alias or title for the server, e.g., Mindspring.  The alias is what will appear on the menu. 
  69.  
  70. That's it.  You should now say yes when it asks if you want to retrieve the newsgroup list.  Kick back, and enjoy. 
  71.  
  72.  
  73. ***********************************
  74.  
  75.     
  76. 2) Basic things you need to know about Xnews.
  77.  
  78. First, a bit of terminology: when I say "groups window", I mean the window that lists all the groups in a server.  "articles window" refers to the window that lists all articles in a group and also displays the selected article.
  79.  
  80. The groups window:
  81.  
  82. - You can select multiple items in the group and article listing the same way you do in Windows Explorer, with Ctrl and Shift.
  83.  
  84. - While the All tab is selected, enter a filter string in the edit box at the bottom to see only groups whose name contain that string.  You can do the same in the articles window, except here, the filter string is assumed to be a regular expression.
  85.  
  86. - You can resize the columns in both groups and articles windows.  Drag and drop drop the column header to reorder the columns,
  87.  
  88. The articles window:
  89.  
  90. - The article listing and viewer _share the same window_ (unlike in NewsXpress).  You can switch between full / split view by hitting F12.  When in full view, hit return to move back and forth between the viewer and list. You can do the same by selecting View | Switch List <-> Viewer or by clicking on the second panel at the bottom.
  91.  
  92. - When you're in split view, single click on the subject to read the article.  (Click on any other column to avoid opening the article.)  When you're in full view, you need to double click.  In either case, pressing Return will do the same.
  93.  
  94. - When the focus (cursor) is in the list, if you click Goto next(/prev/...), it will move to the next(/prev/etc) article relative to where the selection bar (curaor) is.  If the cursor is in the viewer, it will move to the next(/prev/etc) article relative to the article you're reading, regardless of where the selection bar in the list may be.  That makes ense, doesn't it.  To move the selection bar to the article you're reading, press 'c' or click on the progress bar (gauge) at the bottom.
  95.  
  96. - In order to reply/followup/forward a message, you _must first open (read) it_.  Furthermore, the focus (cursor) has to be in the viewer.
  97.  
  98. General:
  99.  
  100. - You can customize the keyboard (Alt+K).  This is also a good way to look at the list of current shortcuts, not all of which are visible on the menus.
  101.  
  102. - There is no connect/disconnection button.  The program just connects when it needs to and disconnects when you close a group window or shut down the program.  Try to avoid opening too many simultaneous connections, since this is not good for the news server.  (If the program is busy doing something and you open another group or read an article or update message count, etc., it will have to open another connection.)  Xnews itself doesn't have any restriction in this regard; however, some servers actually restrict you to X number of simultaneous connections.
  103.  
  104. - Xnews supports multiple servers.  You can even open several servers at once, in the same window.  Note: avoid running multiple copies of Xnews simultaneously.  Not only does this waste memory, it can lead to newsrc and folder conflict and cause all sorts of weirdness.
  105.  
  106. - You can define multiple identities with different names, email, and sig (signature) file via the Setup dialog.  When posting an article, you can then select which identity to use.  You can also specify which identity to use with certain servers/newsgroups  (read on).
  107.  
  108. - You can customize certain settings for individual server.  For example, in server A, you can use identity X; in server B, you can use identity Y.  It should be obvious in the Setup dialog how this is done.
  109.  
  110. - Similarly, you can customize certain settings for individual group or groups.  You may have noticed that when you are in a group with "binaries" in the name, the display looks a bit different.  For example, all the threads are not automatically expanded.  This is the result of certain settings in groups.ini.  Unfortunately, you do have to edit the groups.ini file for group-based customizations.  See the section titled "Advanced customizations".
  111.  
  112. - Xnews stores most settings in ini files which you can edit directly.  The main ones are:
  113.  
  114. xnews.ini    - global settings
  115. servers.ini    - server info and per-server custom settings.
  116. groups.ini    - per-group custom settings
  117.  
  118. You really only need to edit groups.ini manually. Use the setup dialog for the others.
  119.  
  120. - I wrote Xnews for *me* to use.  The program heavily reflects my preferences, habits, and sensibility.  Yes, extensive end-user research went into the making of this software, albeit it's only of 1 user.  The interface is a bit quirky and the program has that freeware feel to it.  If you think Microsoft represents the apotheosis of good software design, this program is probably not for you.  If not, you may learn to like it -- or not.  It's free, so what the hey.
  121.  
  122. That said, if there's something you want to see added/changed, it doesn't hurt to ask.  Provided that the change will result in the greatest happiness to the greatest number of people while causing the least amount of pain to me, I may just do it.
  123.  
  124. Cheers.
  125.  
  126.  
  127. ***********************************
  128.  
  129.  
  130. 3) How do I...
  131.  
  132. Q: ... retrieve the last n headers from a newsgroup.
  133.  
  134. A: Instead of pressing Return to open the group, press Ctrl+Return.  This will bring up a dialog that lets you select how many headers to retrieve.  This is useful for sampling a group with a huge number of headers.  When in the article window, you can bring up this dialog by selecting Article | Refresh Headers Special (Ctrl+F5).  For example: press Ctrl+Return open a group and specify 100 headers to retrieve.  Xnews will retrieve the newest 100 headers.  Then you decide you want to read the older articles.  Hit Ctrl+F5, then move the slider back to the left until you get the number of headers you want, or all the way to the left to get everything.
  135.  
  136. Q: ... decode/save/transfer several articles at once?
  137.  
  138. A: Xnews uses a queueing system.  To put an article into the queue, press Space.  Pressing space again removes it from the queue.  When you queue an article, you will see a number indicating its queue order in the Q column.  Now, select Article | Decode/Save as... or Transfer | (folder).  You can also queue/dequeue an entire thread at a time.
  139.  
  140. Q: ... decode multipart binaries?
  141.  
  142. A: By default, Xnews performs multipart threading in groups that have "binaries" in the name (much like NewsXpress does).  Multipart threading means it will put all the parts of a file and roll it under a thread.  If a file has all the parts, you will see a 4-block cube icon next to it; if it has one or more missing parts, the cube will have a missing block.  Also, if you look at the lines column, it will tell you exactly how many parts there are and how many are present.
  143.  
  144. To queue a multipart file, just select the thread (with the block icon), and hit space.  Xnews will tag all the individual parts for you.  Then hit decode.
  145.  
  146. Hint: with certain file types, it's possible to "sample" the file this way: expand the multipart thread, then individually queue a few parts, e.g., 1/10, 4/10, 8/10  You _must_ queue the first part.  This works well for, say, mp3 files but obviously not zip files as they will be corrupted and unreadable.  (Caveat: I think "sampling" doesn't work for MIME-encoded files.)
  147.  
  148. Q: ... cancel a message?
  149.  
  150. A: To cancel a message, you have to find it and retrieve it first.  You can do this by opening the group as usual, or by using XPAT search (see next section).
  151.  
  152. Q: ... use XPAT search?
  153.  
  154. A: Most servers have a function called XPAT search, which performs server-side search for articles (in other words, search what's on the server, as opposed to what you have on the screen).  To do a search, select which field, or header, you want to search on.  Most of the time, you probably want to search by author  or subject.  The search string is a Unix wildmat, which means unless you want to search for an exact string, you want to surround the string with wild cards (asterisks).  For example, if you enter "help" (without quotes), you won't turn up anything unless there's an article with the exact subject "help".  Instead, type "*help*".  On the other hand, there's no need to type "*[Hh][Ee][Ll][Pp]*" (case insensitive search) because (thank goodness) the program will do that for you.
  155.  
  156.  
  157. ***********************************
  158.  
  159.  
  160. 4) Hidden keyboard shortcuts / Keyboard tips
  161.  
  162. Most shortcut keys are either shown on the menus or listed in the keyboard mapping dialogs. These are shortcuts that are NOT.
  163.  
  164. In articles window:
  165.  
  166. Space        Queue/Dequeue article/thread (place in queue)
  167. Shift+Space    Queue/Dequeue article/thread, but put in head (instead of tail) of the queue
  168. Ctrl+Space    Queue everything in sight (WARNING: does NOT tag multipart binaries intelligently)
  169. Ctrl+Shift+Space    Clear queue
  170. Ctrl+Up/Down    Resize the split window.
  171.  
  172. In article viewer:
  173.  
  174. Space        page down
  175. Backspace    page up
  176. Return        switch to article listing
  177.  
  178. Num 1..Num9    (number1 through 9 on the keypad).  If using split screen, scroll the list while the cursor is in the viewer.
  179.  
  180. In groups window:
  181.  
  182. Ins            manually add a group (right click on name column to edit name)
  183. Del            permanently delete selected group(s) from the newsrc
  184. F4            Switch between subscribed/all groups
  185.  
  186. There shortcuts are in the keyboard map dialog but I'll list them here just in case.
  187.  
  188. In article listing and viewer
  189.  
  190. ? /            previous / next unread
  191. > .         previous / next article (read or unread)
  192. < ,            previous / next queued article
  193. ; '            previous / next thread
  194. \            next article with 9999 score (see scoring.txt)
  195. `            (backquote) next new article since last stored header retrieval
  196.             (see the section on storage)
  197. Alt+Left    Go back in history
  198. Alt+Right    Go forward in history
  199.  
  200. A few words on remapping the keyboard.
  201.  
  202. - You have to be in the groups window or articles window to change their respective shortcuts.  Since these two windows are never active at the same time, it's okay to assign the same key to two functions not in the same window.  for example, you can assign Ctrl+P to "Post" in the groups window and "Print" in the articles window.
  203.  
  204. - Don't assign an unshifted letter key [0..9,a-z] in the groups window, as this will interfere with the feature that lets you jump to a line in the list by typing the first few letter.
  205.  
  206. - The program is pretty liberal about letting you assign any key you want to any function, but be careful about assigning keys that have certain functions in normal Windows programs such as the cursor keys or Ctrl+F6 (switch to next window).  Feel free to experiment, though.
  207.  
  208. - You can't assign to the Del key; the Windows hotkey control won't let you.  If you really want to do this, edit the keys.ini file manually.
  209.  
  210.  
  211.  
  212. ***********************************
  213.  
  214.  
  215. 5) Troubleshooting
  216.  
  217. Q: When I try to post something, I get "bad message ID" error from the server.
  218.  
  219. A: Try using a shorter IDToken (Setup | Identity).  If that doesn't work, remove the IDToken.
  220.  
  221. Q: When a child window is maximized, why is its close (X) button grayed out?
  222.  
  223. A: It's a bug in the Delphi library.  The close button only LOOKS disabled; you can still click on it and it will close the window.  Pressing ctrl+F4 or Esc also works.
  224.  
  225. Q: All my buttons are weird / messed up / invisible.
  226.  
  227. A: Make sure you're using the right comctl32.dll.  Download it here.
  228. http://www.microsoft.com/msdn/downloads/files/40Comupd.htm
  229.  
  230. On systems with win98 + video cards with nVidia or S3 chips, there seems to be a problem with bitmap corruption in programs that use image lists.  Hopefully, the companies in question will fix this with new drivers.
  231.  
  232. Q: I got "Access violation in _____" when I ______
  233.  
  234. A: You found a bug. Email me and tell me exactly what you were doing when you got the error.  Try to reproduce the error if you can.
  235.  
  236. Q: Why is it that the get parent article commands, when successful, sometimes inserts the found article in the listing and sometimes does not?
  237.  
  238. A: Xnews relies on the message number to insert articles into the list.  If it doesn't show the found parent article in the list, it means that the server did not return the message number (the server assigns a number to every article in a group).  I don't know enough about server software to explain why, but that's how it is.
  239.  
  240. Q: How come when I close an articles window, sometimes the program update the message count and sometimes it doesn't?
  241.  
  242. A: Xnews considers automatically updating the message count a low priority task, so if there's no available connection, it doesn't do it.  Of course you can force it by pressing F5.
  243.  
  244.  
  245. ***********************************
  246.  
  247.  
  248. 6) What does ________ do?
  249.  
  250. Q: Mark keep/unkeep?
  251.  
  252. A: If you do not have storage on, when you do a catchup, the next time, you will not see the headers you've retrieved.  If you mark an article or thread as keep, the program will retrieve it again the next time, even if you did a catchup.  When you keep something, it automatically gets assigned a high score so it'll stand out next time you 
  253.  
  254. One example where this is useful is when you have a multipart binary with some parts missing.  If you do a catchup, next time you may retrieve the missing parts, but then the parts you had before will now be gone.  In this case, you want to keep those parts you have and hopefully get the rest next time.
  255.  
  256. If you are storing headers, kept articles are never deleted except when they expire on the server.  That is, they are protected against deletion and local expiration (the expiration you set in the Storage Options dialog).  If you want to delete a kept article, you must first unkeep it.
  257.  
  258. You can specify what score to automatically assign to kept articles in Setup | Misc.  If you set this to zero, no score will be assigned to kept articles.
  259.  
  260. Q: High score/0 score?
  261.  
  262. A: This is equivalent to marking something as important/not important.  It simply assigns a score of 9999 or zero to selected threads/articles.  You can then right click on the Score column (or select View | Filter Scores) and select a score filter to view only high scored articles.
  263.  
  264. Q: AutoBrowse?
  265.  
  266. A: The AutoBrowse feature automatically opens an article when you move the highlight (selection) bar over it in the listing, provided the article is in the cache (or folder). Autobrowse has no effect unless you are in split screen mode.  You can turn Autobrowse on and off manually at any time (under View menu).    In adition, you can control when it should be on by default.  Set AutoBrowseOpt in Xnews.ini under [Misc] section as follows: 0 = never; 1 = when viewing folder or storage of article body is on; 2 = always.  
  267.  
  268. Q: What's with all the catchup options?
  269.  
  270. A: Traditionally, "catchup" in newsreaders means to update the read count to the last article seen.  If you look at the newsrc, you'll see a bunch of number like
  271.  
  272. 1-50,55,65-80.
  273.  
  274. Each article is assigned a number by the server, and these numbers in the newsrc  indicate which articles you have read.  When you do a catchup, the program sets this to
  275.  
  276. 1-<highest-numbered article retrieved>
  277.  
  278. "Catchup" basically means "okay, I've seen all I care to.  Don't show me these articles next time."  Note that you may not have actually read all these articles; you just want to treat it as if you did.
  279.  
  280. In the articles window, there are 3 catchup options (all of which will close the window):
  281.  
  282. - Catchup: this does what's described above.
  283.  
  284. - Catchup and clear keep: this does the above and removes any kept articles as well. Keeping articles is an Xnews feature described above.
  285.  
  286. - Catchup and Kill XPost: this is equivalent to issuing a mark all as read command then closing window.  Mark all as read is NOT the same as catchup since catchup only sets the read count (i.e., it sort of fakes it) whereas Mark all as read go through each article and mark it read, as if you have actually read it.  This does 2 things: 1) Mark as read will perform crosspost killing in subscribed groups.  That is, if the same article was crossposted to another group you subscribe to, then it'll be mark as read there too.  and 2) If you have storage on, the next time you retrieve headers, the old articles will show up as read. This last option is slower than the first two.  How much slower depends on the amount of crosspost and number of articles.
  287.  
  288. Whew!  Was that confusing enough?
  289.  
  290. In the groups window, there are separate catchup and clear keep commands.  Note that in order to do a catchup, you must have updated the message count once.  The "Clear read and keep" command simply clears out the newsrc entry for the selected group(s), letting you essentially start anew.
  291.  
  292.  
  293. ***********************************
  294.  
  295.  
  296. 7) Hidden tips and tricks:
  297.  
  298. - Pay attention to the pop up hints.
  299.  
  300. - In groups window, you can right click on the group name or rc column to edit.  To retrieve a specified number of headers, press Ctrl+Enter instead of Enter to open a newsgroup.
  301.  
  302. - If you want to select an article without opening it, click on any column OTHER than the subject column.
  303.  
  304. - Use the filter box at the bottom (I'll call this the B filter for convenience).  For example, type in news.*ex|nx and press Enter to see only articles about NX in news.software.readers.  You can even type in a filter while it's retrieving headers.
  305.  
  306. - In the article viewer, double click on a URL or article reference to launch the URL or load the reference.  (Or place the caret on the URL and press Ctrl+Enter.)
  307.  
  308. - In the article viewer, select text with the mouse; when you release the mouse button, the text is automatically copy to the Windows clipboard.
  309.  
  310. - If you hold down the Ctrl key while opening an article, the program will just retrieve the headers.  This is useful when you want to see only the headers of a very long article, or if you want to post a followup to an article without retrieving the whole body.
  311.  
  312. - You can drag newsgroup names from the newsgroups window and drop them onto the Newsgroups or Followup-To fields in the message editor.
  313.  
  314. - If you hold down the shift key while clicking on a server (Server menu), you'll be placed in the Setup dialog to edit properties of that server.
  315.  
  316. - In split screen, you can scroll the list even when the cursor is in the viewer this way: turn on Num Lock and use the arrows, home / end, pgup / pgdn as usual.  Use the Num 5 key to open the selected article.
  317.  
  318. - I know my documentation is crappy (heh, it's just a hobby project).  If you don't understand something, email me and ask questions.  Don't just sit there and curse the monitor (or me :)
  319.  
  320.  
  321. ***********************************
  322.  
  323. 8) Filters, filters everywhere
  324.  
  325.  
  326. You've already seen the filter box in the groups and articles window, where you can type in a string to show only groups or articles whose names or subjects contain the string.  In the articles window, the filter box at the bottom is pretty nifty. (I'll call this the B filter for convenience.)  You can use a regex (regular expression) in the B filter. In adition, if you want to filter on the author (from) column instead of the subject, right click to the right of the filter box (or press Ctrl+F).  The letter should change from S (subject) to F (from).  When you are in a folder, you can also switch to G (group) and view only articles from certain groups.
  327.  
  328. There are some subtleties which I should point out.  As you type in a regex, you'll see the result immediately.  The list is not yet threaded.  To thread it, press Return.  Doing this sort of "locks" the filter in place.  If you select another filter (see below), or type in another regex, the filter will be applied on top of the current list, i.e., what you see on the screen.  On the other hand, you can undo the current filter by selecting View | Undo last filter or by pressing Backspace or Delete to clear the B filter _before typing anything else_.
  329.  
  330. There are also predefined filters you can apply.  They are
  331.  
  332. - hide incomplete binaries: hide binaries with missing parts/
  333. - show queued articles only: show only articles that are currently in the queue.  Note: previously queued articles that have been processed will not be shown.
  334. - show new headers only: This is only meaningful with storage turned on.  When you're storing headers, you will have a lot of headers and it may be hard to tell which are new.  This filter will show you only headers that are new since the last session, or more accurately, since last time you opened the window.
  335.  
  336. The others are obvious.
  337.  
  338. To remove the filter and view all articles, select View | Remove All Filters or left click to the right of the edit box (where the letter S/F/G is).  You can also undo the last filter and invert the filter.
  339.  
  340. Wait, there's more.
  341.  
  342. In the article list, click anywhere on the score column to bring up a menu that lets you do a filter based on score.  The choices are:
  343.  
  344. >=9999: show only "important" articles
  345. >0: show positive scores
  346. >=0: show non-negative scores.
  347. >-9999: show only those not killed (negative allowed)
  348. Clear: remove filter.
  349.  
  350. There's also a filter dialog (f9) that lets you set a filter based on one or more criteria.  First check one or more fields you want to filter on, then enter the appropriate condition. 
  351.  
  352. Note that all the filters are cumulative, i.e., they're applied to what's currently in visible in the list, which may br the result of previous filters and may not be the full set of available articles.  The exception is the filter dialog, where you can choose whether to apply the filter on top of the current filters by checking the box "Add to existing".  Otherwise, if you want to apply a filter to the original set of articles, you must first remove the filter.
  353.  
  354.  
  355. Finally, the last filter you applied will affect incoming articles when you refresh headers.  For example, if you click B (hide incomplete binaries), then F5 (refresh), after the headers are loaded and the articles get threaded, any NEW binaries that are incomplete will be filtered out as well and you won't see them until you remove filter.
  356.  
  357. Here's an example of how you can use filters: assuming you have header stored, after you open alt.tv.x-files, press N.  This shows just the new headers.  then type in dream.*land (match "dream land" or "dreamland") in the B filter and press return to view articles about the "Dreamland" episode.  Then browse through the list and mark the threads/articles you like with the '9' key.  This sets their score to 9999.  Now click on the score column and select >0 or >=9999 to see the articles you just tagged and any others scored by your score file.
  358.  
  359.  
  360.  
  361. ***********************************
  362.  
  363.  
  364. 9) Header and article storage.
  365.  
  366. As I menioned earlier, Xnews is an on-line newsreader.  It does cache articles within a session so that when you re-read an article, it just reloads the article from the cache instead of getting it from the server again.  When you close the window, the cache is purged by default.
  367.  
  368. Once in a while, though, when you quit in the middle of reading a busy group, you don't want to do a catchup since you're not done yet, but you don't want to have to retrieve a lot of headers next time.  This is what the Storage feature is for.  Storage is basically just a more permanent cache.
  369.  
  370. Press F7 in the articles window.  You'll have the option to storee the headers only or both headers and article bodies.  You can also specify an expiration so that articles older than X days are automatically purged.  If you select never expire, than the articles are removed when they expire on the server.
  371.  
  372. For efficiency reasons, when an article is removed from storage, it's not actually deleted but only marked as deleted. Thus, the size of the file remains the same.  To reclaim disk space, hit F7 then click the "Compact" button.
  373.  
  374. Note #1: with storage, you can tell the new headers from the stored ones by black lines through their icons (stored headers have blank icons).  Hit the ` (backquote) key to jump to the next unread, new article.  Also, if the article itself (not just the header) has been stored, then the icon is yellow.
  375.  
  376. Note #2: on the toolbar, there's an icon indicating the current storage option.  Click it for a quick way to change the atorage option.
  377.  
  378.  
  379.  
  380. ***********************************
  381.  
  382.  
  383. 10) Folders
  384.  
  385. Storage is only semi-permanent.  Articles will be purged when they expire on the server, or when they're older than the expiration date you set.   For permanent storage of articles, use folders, a.k.a. mailboxes.  
  386.  
  387. Use the setup dialog to add or remove folders. Once you've set up a folder, you can transfer articles into it for permanent storage.  I already setup a folder called "Archive" for you.
  388.  
  389. As with NewsXpress, you can define a default folder where articles should be transferred when you click the archive button. Goto Setup | Folders.  You should see a folder with a red dot next to it in the list box.  The dot indicates the default folder.  Click on the space to the left of a folder name to make it the default folder.
  390.  
  391. Advanced tricks: 
  392.  
  393. #1: you can override the default folder on per-group (edit groups.ini) or per-server (Setup | Servers) basis.
  394.  
  395. #2: if you want the program to transfer articles into a folder of the same name, open xnews.ini and under [Misc] change 
  396.  
  397. Archive=xxx 
  398.  
  399. to 
  400.  
  401. Archive=*
  402.  
  403. (That's an asterisk).  Ditto in servers.ini and groups.ini.
  404.  
  405. #3: you can share folders with NewsXpress.  Just point to the file in Setup | Folders.  Note: because Xnews keeps an index file, if what's in the index (.hdr) does not match what's in the folder (.mbx) file, Xnews will have to rebuild the index.
  406.  
  407.  
  408. ***********************************
  409.  
  410.  
  411.  
  412. 11) Advanced customizations
  413.  
  414. The settings in xnews.ini (Name, Email, etc.) are essentially global settings.  It's possible to override these settings for individual or group of groups.  However, you need to manually edit the groups.ini file to do this.
  415.  
  416. You can override settings in xnews.ini for an individual group or hierarchy by putting them under a section in groups.ini for said group or hierarchy.  Setting in groups.ini override those in servers.ini, which in turn override those in xnews.ini.  The following settings may be overriden in groups.ini:
  417.  
  418. Name
  419. Email
  420. PublicEMail
  421. IDToken
  422. Organization
  423. SigFile
  424. MultipartThreading
  425. SortOn
  426. SortOrder
  427. ColumnLayout
  428. ExpandAllThreads
  429. FullScreen
  430. AttachDir
  431. DecodeDir
  432. Archive
  433.  
  434. Hint: open xnews.ini and look at how these values are set.  Read the comments.
  435.  
  436. For example, say you want to use the sig file mysig.txt most of the time; when in a comp group, you want to use worksig.txt, unless you are in a comp.lang.pascal.delphi.* group, in which case you want to use delphisig.txt.
  437.  
  438. In xnews.ini:
  439.  
  440. [ID]
  441. Name=my name
  442. ; etc.
  443. SigFile=mysig.txt
  444.  
  445. In groups.ini:
  446.  
  447. [comp.*delphi]
  448. SigFile=delphisig.txt
  449.  
  450. [^comp]
  451. SigFile=worksig.txt
  452.  
  453. Note that the program processes groups.ini in sequential order and stops once it finds a match.  Also, there's no need to replicate the other settings such as name or email as they simply revert to the values set in xnews.ini (unless of course you want to use a different name or email).
  454.  
  455. Occasionally, you may want the program to continue on to the next section in  groups.ini.  To do this, add continue=1 to the current section.  Take the example above.  Suppose you want to use some set of email, name, etc. for all comp groups.  In addition, you want to use a different sig file for delphi groups.  This will do the trick:
  456.  
  457. [^comp]
  458. SigFile=worksig.txt
  459. Email=whatever
  460. Name=whatever
  461. ; etc.
  462. continue=1
  463.  
  464. [comp.*delphi]
  465. SigFile=delphisig.txt
  466. ; inherit email, name, etc. from comp section
  467.  
  468. Note: the section name is indeed a regex.  Because groups.ini is a windows ini file, you can't use [ ] in your regex.  In this case, just use a dummy value then add a regex= line.  For example, since you cannot write
  469.  
  470. [delphi[^a]]
  471. ...
  472.  
  473. (match delphi, but not philadelphia)
  474.  
  475. You have to write
  476.  
  477. [compdelphi]
  478. regex=delphi[^a]
  479. ...
  480.  
  481.  
  482. Finally, you can set up xnews for multiple users by specifying a different start up directory with the command line switch /d:start-up-dir.  (Note: you cannot have any space between the switch and the directory name.)  For example,
  483.  
  484. c:\bin\xnews.exe /d:c:\user\mary
  485.  
  486. mary can then have her own .ini files, score file, etc.
  487.  
  488.  
  489. ***********************************
  490.  
  491.  
  492. 12) Plonk file
  493.  
  494. The plonk file is just a quick way to kill an annoying poster.  It is not as powerful and flexible as the score file.  You cannot use regular expressions, so the poster's name and email must match exactly (except for case).  Also, it is global (you cannot filter by groups).  On the other hand, it's simpler to use than the score file and is also more efficent.
  495.  
  496. Usage: when reading an article, press 'k' to add the poster to the plonk file.  You can bring up the plonk file viewer with Ctrl+k.  You can then add, remove, or edit entries.
  497.  
  498. The plonk file itself is just a plain text file.  Each line consists of
  499.  
  500. name<tab>email
  501.  
  502. that is, a name, followed by a tab, then email, all in lower case.  The list is sorted but that is only for the benefit of the human reader (the program uses a hash lookup so it doesn't care).  The tab character is crucial, so be careful if you choose to edit the file manually.
  503.  
  504.  
  505. ***********************************
  506.  
  507. 13) Score file.
  508.  
  509. Xnews happily steals the scoring system concept from slrn.  Basically, each article is assigned a score from -9999 to 9999.  By default, an article has score 0 (no score, or neutral).  Articles with score of -9999 or less are killed (you'll never see them, unless you turn off hard kill, in which case they show up with a red X icon).  Articles with score of 9999 or more are considered "important" and flagged with a yellow ! icon.  Read scoring.txt for details.
  510.  
  511.  
  512. ***********************************
  513.  
  514.  
  515. 14) Regular expression
  516.  
  517. I've mentioned regular expression (abbrev. regex) throughout the readme.  regex is used for the filters, folder search, and score file.  You may wonder what regex syntax Xnews supports.
  518.  
  519. Xnews uses Philip Hazel's PCRE (Perl Compatible Regular Expression) package, adapted for Delphi by yours truly.  What this means is that you have access to a very powerful regex engine, and if you're already familiar with Perl, all the better.  PCRE supports most contructs in perl regex.
  520.  
  521. Here's a good introductory tutorial on perl regex:
  522.  
  523. http://virtual.park.uga.edu/humcomp/perl/regex2a.html
  524.  
  525. _I strongly suggest you read it_
  526.  
  527. I've helpfully added a feature to let you try out Xnews' regex engine and see how it works.  Select Special | Test Regex.
  528.  
  529. For the full discussion on PCRE and differences between PCRE and perl regex, read pcre.html.  This doc is aimed at programmers and will probably give you a headache. (It does me.)  So here's a crib sheet, which may suffice:
  530.  
  531.  
  532. 1) Letters, numbers, and non-special characters just match themselves.
  533.  
  534. Example:
  535.  
  536.     color
  537.         match anything with the word color in it
  538.         
  539. 2) Special characters:
  540.  
  541.    \    treat next character literally, i.e., as itself and not a special
  542.         character.
  543.    .    match any character
  544.    ^    match begin of string
  545.    $    match end of string
  546.    |    alternative
  547.    (..)  grouping
  548.    [..]  match one of the characters in the set
  549.    [^..] does NOT match one of the characters in the set.
  550.  
  551. (the .. are ellipses, not two literal periods.)
  552.  
  553. Example
  554.  
  555.     help\.
  556.         matches help followed by a period
  557.     ca.s
  558.         matches "cats" "cars"
  559.     ^test
  560.         matches "testing", "tester", but not "the test"
  561.     me$
  562.         matches "see me" but not "meter" or "me and you"
  563.     cat|mouse
  564.         matches "cat" "mouse"
  565.     dog(s|gie)
  566.         matches "dogs" "doggie"
  567.     [aeiou]
  568.         matches a vowel
  569.     [a-z0-9]
  570.         matches a letter or digit.  Note how the - is used to specify a range.
  571.         if you want to specify a dash as part of the set, put it at the 
  572.         beginning or end, e.g. [a-f0-9-] matches a-f, 0-9, or dash.
  573.  
  574. Note: when I say "help\." matches "help" followed by a period, what I really means is that the regex will successfully match with a string that contains "help" followed by a period.  Thus "please help. now" will also match, although of course the matching part is only "help."  On the other hand, the regex "^help\.$" will only match the string "help." since the ^ and $ must match the start and end of string.
  575.  
  576. 3) Quantifiers (match how many times)
  577.  
  578.    *     Match 0 or more times
  579.    +     Match 1 or more times
  580.    ?     Match 1 or 0 time (i.e., optionally match)
  581.    {n}   Match exactly n times
  582.    {n,}  Match at least n times
  583.    {n,m} Match at least n but not more than m times
  584.  
  585. Example
  586.  
  587.     ma+
  588.         matches "ma" "maaa" "maaaaaaa"
  589.     ma*
  590.         matches "m" "maaa"
  591.     (yada ){2,}
  592.         matches "yada yada yada "
  593.     foo(and)?bar
  594.         matches "fooandbar" or "foobar" (the "and" is optional).
  595.  
  596. 4) Shorthands for character set
  597.  
  598.    \w     Match a "word" character, letters, numbers, and "_"
  599.    \W     Match a non-word character, opposite of \w
  600.    \s     Match a whitespace character (space, tab, cr, lf)
  601.    \S     Match a non-whitespace character, opposite of \s
  602.    \d     Match a digit character
  603.    \D     Match a non-digit character
  604.  
  605. Example
  606.  
  607.     \(\d\d\d\)\s*\d\d\d[- ]?\d\d\d\d
  608.         match a U.S. phone number
  609.         that is, 3 digits enclosed in literal parenthesis
  610.         then zero or more spaces
  611.         then 3 digits prefix
  612.         then either a dash or a space or nothing at all
  613.         then 4 digits.
  614.  
  615. 5) Zero width assertion
  616.  
  617.     A fancy way of saying a true condition that doesn't actually match or consume a character.
  618.  
  619.     \b   Match a word boundary
  620.     \B   Match a non-(word boundary)
  621.  
  622. Example
  623.  
  624.     \bfoot
  625.         match "footer" "footing" "a foot" but not "afoot"
  626.     foot\b
  627.         match "afoot" and "foot." (period doesn't count as part of word)
  628.         but not "footing"
  629.     \bfoot\b
  630.         match the whole word foot
  631.     foot\B
  632.         match "footer" but not "foot;"  i.e., there's got to be something
  633.         after foot that is part of a word
  634.  
  635. 6) Back references
  636.  
  637.     If your regex contains one or more subexpression (..) you can refer to the <digit>th subexpression with \<digit>
  638.  
  639. Example
  640.     (\b\w+\b) to \1
  641.         match "man to man" "hand to hand" "100 to 10000"
  642.         the \b\w+\b matches a whole word.  The ( ) saves the word
  643.         in subexpression #1 (it's the first sub expression in the regex).
  644.         The \1 refers back to it.  
  645.         "man to child" would not match since child does not match man.
  646.         Note: Xnews allows up to 19 sub expression in a regex.
  647.  
  648. 7) Look ahead/behind
  649.  
  650.    (?=regexp) lookahead assertion.
  651.    (?!regexp) negative lookahead assertion. 
  652.    (?<=regexp) look behind assertion
  653.    (?<!regexp) negative look behind assertion
  654.  
  655. Example
  656.     \w+(?=\t)
  657.         match a word followed by a tab; the tab isn't included in the match
  658.  
  659.     foo(?!bar)
  660.         match any occurrence of "foo" that isn't followed by "bar"
  661.    
  662.     (?<!foo)bar
  663.        match an occurrence of "bar" that is not preceded by foo
  664.         
  665.  
  666. 8) Case sensitivity
  667.  
  668.     In Xnews, the filter regex is always case insensitive. In the score file, you can make regex case sensitive by specifying Keyword= expression rather than Keyword: expression.  In the folder search dialog, you can toggle case sensitivity by checking the "Match case" box.
  669.  
  670.  
  671. ***********************************
  672.  
  673. Luu Tran
  674. Dec 8, 1998
  675.  
  676.